#include"ioCC2530.h"
void main(){
  P1SEL &= (0x1<<0 |0x1<<1 |0x1<<3|0x1<<4|0x1<<3);
  
  P1DIR |= (0x1<<0|0x1<<1|0x1<<3|0x1<<4);
  
  P1DIR &= ~(0x1<<2);
  
  P1 = 0;
  
  while(1){
    if(P1_2 == 0){
      P1 = ~P1;
      while(P1_2 == 0);
    }
  }
}